
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>1.2 Flume 组成架构 · 大数据 Fulume 课堂笔记</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content=" 李振超">
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-prism/prism-base16-ateliersulphurpool.light.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-change_girls/girls.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="styles/website.css">
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="13-flume-tuo-pu-jia-gou.html" />
    
    
    <link rel="prev" href="11-flume-de-zuo-yong.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.atguigu.com/" target="_blank" class="custom-link">联系我们</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    第 1 章 概述
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="11-flume-de-zuo-yong.html">
            
                <a href="11-flume-de-zuo-yong.html">
            
                    
                    1.1 Flume 是什么
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.1.2" data-path="12-flume-zu-cheng-jia-gou.html">
            
                <a href="12-flume-zu-cheng-jia-gou.html">
            
                    
                    1.2 Flume 组成架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="13-flume-tuo-pu-jia-gou.html">
            
                <a href="13-flume-tuo-pu-jia-gou.html">
            
                    
                    1.3 Flume 拓扑架构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="14-flume-nei-bu-yuan-li.html">
            
                <a href="14-flume-nei-bu-yuan-li.html">
            
                    
                    1.4 Flume 内部原理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="chapter1.html">
            
                <a href="chapter1.html">
            
                    
                    第 2 章 快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="di-3-zhang-qi-ye-kai-fa-an-li.html">
            
                <a href="di-3-zhang-qi-ye-kai-fa-an-li.html">
            
                    
                    第 3 章 企业开发案例
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="di-3-zhang-qi-ye-kai-fa-an-li/31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.html">
            
                <a href="di-3-zhang-qi-ye-kai-fa-an-li/31-guan-fang-an-4f8b3a-jian-kong-duan-kou-shu-ju.html">
            
                    
                    3.1 官方案例:监控端口数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="di-3-zhang-qi-ye-kai-fa-an-li/32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.html">
            
                <a href="di-3-zhang-qi-ye-kai-fa-an-li/32-shi-shi-du-qu-ben-di-wen-jian-dao-hdfs-an-li.html">
            
                    
                    3.2 实时读取本地文件到HDFS案例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="di-3-zhang-qi-ye-kai-fa-an-li/33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.html">
            
                <a href="di-3-zhang-qi-ye-kai-fa-an-li/33-shi-shi-du-qu-mu-lu-wen-jian-dao-hdfs.html">
            
                    
                    3.3 实时读取目录文件到 HDFS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="di-3-zhang-qi-ye-kai-fa-an-li/34-dan-shu-ju-yuan-duo-chu-kou-an-li.html">
            
                <a href="di-3-zhang-qi-ye-kai-fa-an-li/34-dan-shu-ju-yuan-duo-chu-kou-an-li.html">
            
                    
                    3.4 单数据源多出口案例(选择器)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="di-3-zhang-qi-ye-kai-fa-an-li/35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.html">
            
                <a href="di-3-zhang-qi-ye-kai-fa-an-li/35-dan-shu-ju-yuan-duo-chu-kou-an-4f8b28-sink-7ec429.html">
            
                    
                    3.5 单数据源多出口案例(Sink组)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="di-3-zhang-qi-ye-kai-fa-an-li/36-duo-shu-ju-yuan-hui-zong-an-li.html">
            
                <a href="di-3-zhang-qi-ye-kai-fa-an-li/36-duo-shu-ju-yuan-hui-zong-an-li.html">
            
                    
                    3.6 多数据源汇总案例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="di-4-zhang-flume-jian-kong-zhi-ganglia.html">
            
                <a href="di-4-zhang-flume-jian-kong-zhi-ganglia.html">
            
                    
                    第 4 章 Flume 监控之 Ganglia
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="di-4-zhang-flume-jian-kong-zhi-ganglia/41-ganglia-de-an-zhuang-he-bu-shu.html">
            
                <a href="di-4-zhang-flume-jian-kong-zhi-ganglia/41-ganglia-de-an-zhuang-he-bu-shu.html">
            
                    
                    4.1 Ganglia 的安装和部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="di-4-zhang-flume-jian-kong-zhi-ganglia/42-cao-zuo-flume-ce-shi-jian-kong.html">
            
                <a href="di-4-zhang-flume-jian-kong-zhi-ganglia/42-cao-zuo-flume-ce-shi-jian-kong.html">
            
                    
                    4.2 操作 Flume 测试监控
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="di-5-zhang-zi-ding-yi-source.html">
            
                <a href="di-5-zhang-zi-ding-yi-source.html">
            
                    
                    第 5 章 自定义 source
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="di-5-zhang-zi-ding-yi-source/51-xu-qiu.html">
            
                <a href="di-5-zhang-zi-ding-yi-source/51-xu-qiu.html">
            
                    
                    5.1 需求
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="di-5-zhang-zi-ding-yi-source/52-fen-xi.html">
            
                <a href="di-5-zhang-zi-ding-yi-source/52-fen-xi.html">
            
                    
                    5.2 分析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="di-5-zhang-zi-ding-yi-source/53-bian-ma.html">
            
                <a href="di-5-zhang-zi-ding-yi-source/53-bian-ma.html">
            
                    
                    5.3 编码
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="di-5-zhang-zi-ding-yi-source/54-ce-shi.html">
            
                <a href="di-5-zhang-zi-ding-yi-source/54-ce-shi.html">
            
                    
                    5.4 测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="di-5-zhang-qi-ye-zhen-shi-mian-shi-ti.html">
            
                <a href="di-5-zhang-qi-ye-zhen-shi-mian-shi-ti.html">
            
                    
                    第 6 章 企业真实面试题
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >1.2 Flume 组成架构</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="12-flume-&#x7EC4;&#x6210;&#x67B6;&#x6784;">1.2 Flume &#x7EC4;&#x6210;&#x67B6;&#x6784;</h1>
<h2 id="121-&#x6570;&#x636E;&#x6D41;&#x6A21;&#x578B;">1.2.1 &#x6570;&#x636E;&#x6D41;&#x6A21;&#x578B;</h2>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541483879.png-atguiguText" alt=""></p>
<p><a href="http://bigdataatguigu.applinzi.com/ppt/flume" target="_blank">&#x64AD;&#x653E;&#x5E7B;&#x706F;&#x7247;</a></p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541486776.png-atguiguText" alt=""></p>
<h3 id="flume-event">Flume Event</h3>
<my>Flume Event &#x662F;&#x6570;&#x636E;&#x6D41;&#x7684;&#x57FA;&#x672C;&#x5355;&#x5143;</my>

<p>&#x5B83;&#x7531;&#x4E00;&#x4E2A;&#x88C5;&#x8F7D;&#x6570;&#x636E;&#x7684;&#x5B57;&#x8282;&#x6570;&#x7EC4;(byte payload)&#x548C;&#x4E00;&#x7CFB;&#x5217;&#x53EF;&#x9009;&#x7684;&#x5B57;&#x7B26;&#x4E32;&#x5C5E;&#x6027;&#x6765;&#x7EC4;&#x6210;(&#x53EF;&#x9009;&#x5934;&#x90E8;).     </p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1541484521.png-atguiguText" alt=""></p>
<hr>
<h3 id="flume-agent">Flume agent</h3>
<p>&#x4E00;&#x4E2A; Flume agent &#x5C31;&#x662F;&#x4E00;&#x4E2A; JVM &#x8FDB;&#x7A0B;, &#x4ED6;&#x5305;&#x542B;&#x4E00;&#x4E9B;&#x7EC4;&#x4EF6;, &#x901A;&#x8FC7;&#x8FD9;&#x4E9B;&#x7EC4;&#x4EF6; Flume Event &#x4ECE;&#x4E00;&#x4E2A;&#x5916;&#x90E8;&#x7684;&#x6570;&#x636E;&#x6E90;&#x6D41;&#x5165;&#x5230;&#x4E0B;&#x4E00;&#x4E2A;&#x76EE;&#x7684;&#x5730;(destination)</p>
<p>Agent &#x662F; Flume &#x6700;&#x5C0F;&#x7684;&#x72EC;&#x7ACB;&#x8FD0;&#x884C;&#x5355;&#x4F4D;.</p>
<p>Flume agent &#x6CE8;&#x610F;&#x5305;&#x62EC; 3 &#x4E2A;&#x7EC4;&#x4EF6;:</p>
<h4 id="1-flume-source">1. Flume source</h4>
<p>Flume source &#x6D88;&#x8017;&#x4ECE;&#x7C7B;&#x4F3C;&#x4E8E; web &#x670D;&#x52A1;&#x5668;&#x8FD9;&#x6837;&#x7684;&#x5916;&#x90E8;&#x6E90;&#x4F20;&#x6765;&#x7684; events.</p>
<p>&#x5916;&#x90E8;&#x6570;&#x636E;&#x6E90;&#x4EE5;&#x4E00;&#x79CD; Flume source &#x80FD;&#x591F;&#x8BA4;&#x8BC6;&#x7684;&#x683C;&#x5F0F;&#x53D1;&#x9001; event &#x7ED9; Flume source.</p>
<p>Flume source &#x7EC4;&#x4EF6;&#x53EF;&#x4EE5;&#x5904;&#x7406;&#x5404;&#x79CD;&#x7C7B;&#x578B;&#x3001;&#x5404;&#x79CD;&#x683C;&#x5F0F;&#x7684;&#x65E5;&#x5FD7;&#x6570;&#x636E;&#xFF0C;&#x5305;&#x62EC; avro&#x3001;thrift&#x3001;exec&#x3001;jms&#x3001;spooling directory&#x3001;netcat&#x3001;sequence generator&#x3001;syslog&#x3001;http&#x3001;legacy.</p>
<my>flume source &#x662F;&#x8D1F;&#x8D23;&#x63A5;&#x6536;&#x6570;&#x636E;&#x5230; Flume Agent &#x7684;&#x7EC4;&#x4EF6;</my>

<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1544936105.png" alt=""></p>
<h4 id="2-flume-channel">2. Flume channel</h4>
<p>&#x5F53; Flume source &#x63A5;&#x53D7;&#x5230;&#x4E00;&#x4E2A; event &#x7684;&#x65F6;, Flume source &#x4F1A;&#x628A;&#x8FD9;&#x4E2A; event &#x5B58;&#x50A8;&#x5728;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A; channel &#x4E2D;.</p>
<my>Channel &#x662F;&#x8FDE;&#x63A5;Source&#x548C;Sink&#x7684;&#x7EC4;&#x4EF6;,  &#x662F;&#x4F4D;&#x4E8E; Source &#x548C; Sink &#x4E4B;&#x95F4;&#x7684;&#x6570;&#x636E;&#x7F13;&#x51B2;&#x533A;&#x3002;</my>

<p>Flume channel &#x4F7F;&#x7528;<my>&#x88AB;&#x52A8;&#x5B58;&#x50A8;&#x673A;&#x5236;</my>. &#x5B83;&#x5B58;&#x50A8;&#x7684;&#x6570;&#x636E;&#x7684;&#x5199;&#x5165;&#x662F;&#x9760; Flume source &#x6765;&#x5B8C;&#x6210;&#x7684;, &#x6570;&#x636E;&#x7684;&#x8BFB;&#x53D6;&#x662F;&#x9760;&#x540E;&#x9762;&#x7684;&#x7EC4;&#x4EF6; Flume sink &#x6765;&#x5B8C;&#x6210;&#x7684;.</p>
<p>Channel &#x662F;&#x7EBF;&#x7A0B;&#x5B89;&#x5168;&#x7684;&#xFF0C;&#x53EF;&#x4EE5;&#x540C;&#x65F6;&#x5904;&#x7406;&#x51E0;&#x4E2A; Source &#x7684;&#x5199;&#x5165;&#x64CD;&#x4F5C;&#x548C;&#x51E0;&#x4E2A; Sink &#x7684;&#x8BFB;&#x53D6;&#x64CD;&#x4F5C;&#x3002;</p>
<p>Flume &#x81EA;&#x5E26;&#x4E24;&#x79CD; Channel&#xFF1A;</p>
<ul>
<li><p>Memory Channel</p>
<p>Memory Channel&#x662F;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#x961F;&#x5217;&#x3002;</p>
<p>Memory Channel&#x5728;&#x4E0D;&#x9700;&#x8981;&#x5173;&#x5FC3;&#x6570;&#x636E;&#x4E22;&#x5931;&#x7684;&#x60C5;&#x666F;&#x4E0B;&#x9002;&#x7528;&#x3002;</p>
<p>&#x5982;&#x679C;&#x9700;&#x8981;&#x5173;&#x5FC3;&#x6570;&#x636E;&#x4E22;&#x5931;&#xFF0C;&#x90A3;&#x4E48;Memory Channel&#x5C31;&#x4E0D;&#x5E94;&#x8BE5;&#x4F7F;&#x7528;&#xFF0C;&#x56E0;&#x4E3A;&#x7A0B;&#x5E8F;&#x6B7B;&#x4EA1;&#x3001;&#x673A;&#x5668;&#x5B95;&#x673A;&#x6216;&#x8005;&#x91CD;&#x542F;&#x90FD;&#x4F1A;&#x5BFC;&#x81F4;&#x6570;&#x636E;&#x4E22;&#x5931;&#x3002;</p>
</li>
<li><p>File Channel&#x3002;</p>
<p>File Channel&#x5C06;&#x6240;&#x6709;&#x4E8B;&#x4EF6;&#x5199;&#x5230;&#x78C1;&#x76D8;&#x3002;</p>
<p>&#x56E0;&#x6B64;&#x5728;&#x7A0B;&#x5E8F;&#x5173;&#x95ED;&#x6216;&#x673A;&#x5668;&#x5B95;&#x673A;&#x7684;&#x60C5;&#x51B5;&#x4E0B;&#x4E0D;&#x4F1A;&#x4E22;&#x5931;&#x6570;&#x636E;&#x3002;</p>
</li>
</ul>
<p>&#x8FD8;&#x53EF;&#x4EE5;&#x6709;&#x5176;&#x4ED6;&#x7684; channel: &#x6BD4;&#x5982; JDBC channel.</p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1544936250.png" alt=""></p>
<h4 id="3-flume-sink">3. Flume sink</h4>
<p>Sink &#x4E0D;&#x65AD;&#x5730;&#x8F6E;&#x8BE2; Channel &#x4E2D;&#x7684;&#x4E8B;&#x4EF6;&#x4E14;&#x6279;&#x91CF;&#x5730;&#x79FB;&#x9664;&#x5B83;&#x4EEC;&#xFF0C;&#x5E76;&#x5C06;&#x8FD9;&#x4E9B;&#x4E8B;&#x4EF6;&#x6279;&#x91CF;&#x5199;&#x5165;&#x5230;&#x5B58;&#x50A8;&#x6216;&#x7D22;&#x5F15;&#x7CFB;&#x7EDF;&#x3001;&#x6216;&#x8005;&#x53D1;&#x9001;&#x5230;&#x53E6;&#x4E00;&#x4E2A;Flume Agent&#x3002;</p>
<p>Sink &#x662F;&#x5B8C;&#x5168;&#x4E8B;&#x52A1;&#x6027;&#x7684;&#x3002;</p>
<p>&#x5728;&#x4ECE; Channel &#x6279;&#x91CF;&#x5220;&#x9664;&#x6570;&#x636E;&#x4E4B;&#x524D;&#xFF0C;&#x6BCF;&#x4E2A; Sink &#x7528; Channel &#x542F;&#x52A8;&#x4E00;&#x4E2A;&#x4E8B;&#x52A1;&#x3002;&#x6279;&#x91CF;&#x4E8B;&#x4EF6;&#x4E00;&#x65E6;&#x6210;&#x529F;&#x5199;&#x51FA;&#x5230;&#x5B58;&#x50A8;&#x7CFB;&#x7EDF;&#x6216;&#x4E0B;&#x4E00;&#x4E2A;Flume Agent&#xFF0C;Sink &#x5C31;&#x5229;&#x7528; Channel &#x63D0;&#x4EA4;&#x4E8B;&#x52A1;&#x3002;&#x4E8B;&#x52A1;&#x4E00;&#x65E6;&#x88AB;&#x63D0;&#x4EA4;&#xFF0C;&#x8BE5; Channel &#x4ECE;&#x81EA;&#x5DF1;&#x7684;&#x5185;&#x90E8;&#x7F13;&#x51B2;&#x533A;&#x5220;&#x9664;&#x4E8B;&#x4EF6;&#x3002;</p>
<p>Sink&#x7EC4;&#x4EF6;&#x76EE;&#x7684;&#x5730;&#x5305;&#x62EC;hdfs&#x3001;logger&#x3001;avro&#x3001;thrift&#x3001;ipc&#x3001;file&#x3001;null&#x3001;HBase&#x3001;solr&#x3001;&#x81EA;&#x5B9A;&#x4E49;&#x3002;</p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1544936332.png" alt=""></p>
<hr>
<h2 id="122-&#x62E6;&#x622A;&#x5668;interceptor">1.2.2 &#x62E6;&#x622A;&#x5668;(Interceptor)</h2>
<p>&#x5F53;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5BF9;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x8FC7;&#x6EE4;&#x65F6;&#xFF0C;&#x6211;&#x4EEC;&#x9664;&#x4E86;&#x5728; Source&#x3001; Channel &#x548C; Sink &#x8FDB;&#x884C;&#x4EE3;&#x7801;&#x4FEE;&#x6539;&#x4E4B;&#x5916;&#xFF0C; Flume &#x4E3A;&#x6211;&#x4EEC;&#x63D0;&#x4F9B;&#x4E86;&#x62E6;&#x622A;&#x5668;&#xFF0C;&#x62E6;&#x622A;&#x5668;&#x4E5F;&#x662F; chain &#x5F62;&#x5F0F;&#x7684;&#x3002;</p>
<p>&#x62E6;&#x622A;&#x5668;&#x7684;&#x4F4D;&#x7F6E;&#x5728; Source &#x548C; Channel &#x4E4B;&#x95F4;&#xFF0C;&#x5F53;&#x6211;&#x4EEC;&#x4E3A; Source &#x6307;&#x5B9A;&#x62E6;&#x622A;&#x5668;&#x540E;&#xFF0C;&#x6211;&#x4EEC;&#x5728;&#x62E6;&#x622A;&#x5668;&#x4E2D;&#x4F1A;&#x5F97;&#x5230; Event&#xFF0C;&#x6839;&#x636E;&#x9700;&#x6C42;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5BF9; Event &#x8FDB;&#x884C;&#x4FDD;&#x7559;&#x8FD8;&#x662F;&#x629B;&#x5F03;&#xFF0C;&#x629B;&#x5F03;&#x7684;&#x6570;&#x636E;&#x4E0D;&#x4F1A;&#x8FDB;&#x5165; Channel &#x4E2D;&#x3002;</p>
<p><img src="http://lizhenchao.oss-cn-shenzhen.aliyuncs.com/1544936583.png-atguiguText" alt=""></p>
<hr>
<h2 id="123-flume-&#x7684;&#x53EF;&#x9760;&#x6027;">1.2.3 Flume &#x7684;&#x53EF;&#x9760;&#x6027;</h2>
<p>Flume &#x4F7F;&#x7528;&#x4E8B;&#x52A1;&#x6027;&#x7684;&#x65B9;&#x5F0F;&#x4FDD;&#x8BC1;&#x4F20;&#x9001; Event &#x6574;&#x4E2A;&#x8FC7;&#x7A0B;&#x7684;&#x53EF;&#x9760;&#x6027;&#x3002; </p>
<p>Sink &#x5FC5;&#x987B;&#x5728;Event &#x88AB;&#x5B58;&#x5165; Channel &#x540E;&#xFF0C;&#x6216;&#x8005;&#xFF0C;&#x5DF2;&#x7ECF;&#x88AB;&#x4F20;&#x8FBE;&#x5230;&#x4E0B;&#x4E00;&#x4E2A; Agent&#x91CC;&#xFF0C;&#x53C8;&#x6216;&#x8005;&#xFF0C;&#x5DF2;&#x7ECF;&#x88AB;&#x5B58;&#x5165;&#x5916;&#x90E8;&#x6570;&#x636E;&#x76EE;&#x7684;&#x5730;&#x4E4B;&#x540E;&#xFF0C;&#x624D;&#x80FD;&#x628A; Event &#x4ECE; Channel &#x4E2D; remove &#x6389;&#x3002;</p>
<p>&#x8FD9;&#x6837;&#x6570;&#x636E;&#x6D41;&#x91CC;&#x7684; Event &#x65E0;&#x8BBA;&#x662F;&#x5728;&#x4E00;&#x4E2A; Agent &#x91CC;&#x8FD8;&#x662F;&#x591A;&#x4E2A; Agent &#x4E4B;&#x95F4;&#x6D41;&#x8F6C;&#xFF0C;&#x90FD;&#x80FD;&#x4FDD;&#x8BC1;&#x53EF;&#x9760;&#xFF0C;&#x56E0;&#x4E3A;&#x4EE5;&#x4E0A;&#x7684;&#x4E8B;&#x52A1;&#x4FDD;&#x8BC1;&#x4E86; event &#x4F1A;&#x88AB;&#x6210;&#x529F;&#x5B58;&#x50A8;&#x8D77;&#x6765;&#x3002;</p>
<p>&#x6BD4;&#x5982; Flume&#x652F;&#x6301;&#x5728;&#x672C;&#x5730;&#x4FDD;&#x5B58;&#x4E00;&#x4EFD;&#x6587;&#x4EF6; channel &#x4F5C;&#x4E3A;&#x5907;&#x4EFD;&#xFF0C;&#x800C; Memory Channel &#x5C06;Event &#x5B58;&#x5728;&#x5185;&#x5B58; Queue &#x91CC;&#xFF0C;&#x901F;&#x5EA6;&#x5FEB;&#xFF0C;&#x4F46;&#x4E22;&#x5931;&#x7684;&#x8BDD;&#x65E0;&#x6CD5;&#x6062;&#x590D;&#x3002;</p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; &#x5C1A;&#x7845;&#x8C37;&#x5927;&#x6570;&#x636E; 2019 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification"><br>&#x8BE5;&#x6587;&#x4EF6;&#x6700;&#x540E;&#x4FEE;&#x8BA2;&#x65F6;&#x95F4;&#xFF1A;
2018-12-16 13:06:29
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="11-flume-de-zuo-yong.html" class="navigation navigation-prev " aria-label="Previous page: 1.1 Flume 是什么">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="13-flume-tuo-pu-jia-gou.html" class="navigation navigation-next " aria-label="Next page: 1.3 Flume 拓扑架构">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"1.2 Flume 组成架构","level":"1.1.2","depth":2,"next":{"title":"1.3 Flume 拓扑架构","level":"1.1.3","depth":2,"path":"13-flume-tuo-pu-jia-gou.md","ref":"13-flume-tuo-pu-jia-gou.md","articles":[]},"previous":{"title":"1.1 Flume 是什么","level":"1.1.1","depth":2,"path":"11-flume-de-zuo-yong.md","ref":"11-flume-de-zuo-yong.md","articles":[]},"dir":"ltr"},"config":{"plugins":["splitter","expandable-chapters-small","page-toc-button","-highlight","prism","prism-themes","tbfed-pagefooter","sitemap","change_girls","livereload"],"styles":{"website":"styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy 尚硅谷大数据 2019","modify_label":"<br>该文件最后修订时间：","modify_format":"YYYY-MM-DD HH:mm:ss"},"prism":{"css":["prism-themes/themes/prism-base16-ateliersulphurpool.light.css"]},"disqus":{"shortName":"zhenchao125"},"livereload":{},"splitter":{},"change_girls":{"time":30,"urls":["http://o7cqr8cfk.bkt.clouddn.com/18-3-4/62171757.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/83394736.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/15906185.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/15906185.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/3394270.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/65028582.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/20359261.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/37472401.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/3355397.jpg-atguiguImg","http://o7cqr8cfk.bkt.clouddn.com/18-3-4/11075549.jpg-atguiguImg"]},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"sitemap":{"hostname":"https://www.gitbook.com/@zhenchao125"},"page-toc-button":{"maxTocDepth":3,"minTocSize":2},"prism-themes":{},"expandable-chapters-small":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":" 李振超","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"大数据 Fulume 课堂笔记","language":"zh-hans","links":{"sidebar":{"联系我们":"http://www.atguigu.com/"}},"gitbook":"*","description":"课堂笔记,学生提前预习"},"file":{"path":"12-flume-zu-cheng-jia-gou.md","mtime":"2018-12-16T05:06:29.741Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-01-25T01:39:38.954Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-change_girls/girls.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

